package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;

public interface UserDao {
    User findByUsername(String username);

    Page<User> findPage(String queryString);

    void add(User user);

    User findUserById(Integer id);

    Integer[] findRoleIdsByUserId(Integer id);

    void update(User user);

    void deleteRoleIdsByUserId(Integer id);


    void delete(Integer id);

    User findWithMenusByUsername(String username);
}
